<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ taglib prefix="s" uri="/struts-tags"%>
<%
    String path = request.getContextPath();
    String basePath = request.getScheme() + "://"
            + request.getServerName() + ":" + request.getServerPort()
            + path + "/";
%>
<!doctype html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<base href="<%=basePath%>">
<meta http-equiv="pragma" content="no-cache">
<meta http-equiv="cache-control" content="no-cache">
<title>增加预订方</title>
<link href="css/css-main.css" rel="stylesheet" type="text/css" />
<link rel="stylesheet" href="css/main.css" type="text/css" />
<link rel=stylesheet type=text/css href="css/msgbox/jquery.msgbox.css" />
<link rel="stylesheet" href="css/validation/validationEngine.jquery.css" type="text/css"/>
<script type="text/javascript" src="js/jquery.min.js"></script>
<script src="js/validation/languages/jquery.validationEngine-zh_CN.js" ></script>
<script src="js/validation/jquery.validationEngine.js" ></script>
<script>
		jQuery(document).ready(function(){
			// binds form submission and fields to the validation engine
			jQuery("#formId").validationEngine({
			promptPosition: "centerRight"});
		});
	
	function cancel() {
		window.parent.closeMsgBox();
			}
			
	 function onFus(){
    	document.getElementById("clientLevelName").focus();
    }
	</script>

</head>
<body onload="onFus();">
<form id="formId" method="post" action="cms/customer/doModLevel.do">
<div class="tableall">
  <!--//导航位置层-->
    <div class="cont_right_cont"><div>  
      </div>
      <fieldset>
      <legend>修改会员级别</legend>
      <div >
        <table width="100%" border="0" cellspacing="0" cellpadding="0" align="center">
    <tr>
      <td nowrap width="20%" align="right">会员级别：</td>
      <td nowrap width="30%">
      <span style="padding:0px">
      <input type="hidden" name="clientLevel.clientLevelID" value="<s:property value="clientLevel.clientLevelID"/>" />
      <input name="clientLevel.clientLevelName" type="text" class="data-searchtxt-runtime validate[required,maxSize[20] custom[chAndEnChar]] text-input" id="clientLevelName" value="<s:property value="clientLevel.clientLevelName"/>" />
      <font color="red">*</font>
      </span>
      </td>
    </tr>
    <tr>
      <td nowrap align="right">折扣：</td>
      <td nowrap>
      <span style="padding:0px">
      <input name="clientLevel.discount" type="text" class="data-searchtxt-runtime validate[required,custom[discount]]" id="textfield3" value="<s:property value="clientLevel.discount"/>" />
      <font color="red">*</font>
      </span>
      </td>
    </tr>
    <tr>
      <td nowrap align="right">保留时长：</td>
      <td nowrap>
      <span style="padding:0px">
      <input name="clientLevel.longestRetention" type="text" class="data-searchtxt-runtime validate[custom[number]]" id="textfield4" value="<s:property value="clientLevel.longestRetention"/>" />
      </span>
      </td>
    </tr>
     <tr>
      <td nowrap align="right">备注：</td>
      <td nowrap>
      <span style="padding:0px">
      <textarea name="clientLevel.clientLevelDesc" cols="40" rows="4" class="data-searchtxt_textarea" id="clientLevelDesc"><s:property value="clientLevel.clientLevelDesc"/></textarea>
      </span>
      </td>
    </tr>
    <tr>
      <td nowrap colspan="2" align="center">
      <input name="button3" type="submit" class="btn-Yes" id="button3" value="确  定">
    <input name="button4" type="button" class="btn-Yes" id="button4" onclick="cancel();" value="取消">
    </td>
    </tr>
  </table>
      </div>
      </fieldset>
    </div>
</div>
</form>
</body>
</html>
